import redis
HOST = '10.10.10.45'
PORT = '6379'

sleep=1
title='used_memory_rss,'+'used_memory_peak,'+'used_memory,'+'mem_fragmentation_ratio,'+'instantaneous_ops_per_sec,'+'rejected_connections,'+'connected_clients,'+'blocked_clients'


def connect_redis(host, port):
    r = redis.Redis(host=host, port=port, password='QweOi8Wrt1Uy45')
    return r


r = connect_redis(HOST, PORT)
info = r.client_list()
print(info)
